﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WP7TransferDataTool
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITransferDataService" in both code and config file together.
    [ServiceContract]
    public interface ITransferDataService
    {
        [OperationContract]
        List<TFileInfo> GetFiels(string extension);
        [OperationContract]
        byte[] TransferFile(string fileName, int sPoint, int length);
        
    }

    [DataContract]
    public class TFileInfo
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Size { get; set; }
        [DataMember]
        public DateTime DateCreated
        {
            get;
            set;
        }
    }
}
